import { VTActor, VTActorOptions, VTActorRenderType } from "./VTActor";

export class VTLinesActor extends VTActor {
    constructor(polyData, options:VTActorOptions = {}) {
        if(!options.defaultCellColor) {
            options.defaultCellColor = [192, 56, 255, 255];
        }
        super(polyData, {
            ...options
        })
        this.setRenderType(VTActorRenderType.WIREFRAME);
        this.setWidth(2);
    }

    public setWidth(width:number) {
        this.instance.getProperty().setLineWidth(width);
    }
}